package org.csu.mypetstoreapi.service;


import org.csu.mypetstoreapi.common.CommonResponse;
import org.csu.mypetstoreapi.entity.Category;
import org.csu.mypetstoreapi.entity.Item;
import org.csu.mypetstoreapi.entity.Product;

import java.util.List;

public interface CatalogService {
    CommonResponse<Category> findCategoryById(String catid);
    CommonResponse<List<Category>> findAllCategorys();
    CommonResponse<List<Product>> findProductByCategory(String category);
    CommonResponse<List<Product>> findAllProducts();
    CommonResponse<Item> findItemById(String itemid);
    CommonResponse<List<Item>> findItemByProductId(String productid);
    CommonResponse<List<Item>> findItemByName(String productName);
    CommonResponse<List<Item>> findItemByCategory(String categoryId);
    CommonResponse<List<Item>> allItems();
    CommonResponse<Product> findProductByProductId(String productid);
    CommonResponse<List<Product>> searchProductList(String keyword);

}
